<div class="layui-row">
    <table class="layui-table text-center" style="margin-top: 0px;">
        <thead>
        <tr>
            <th>图片</th>
            <th>名称</th>
            <th>SKU</th>
            <th>单位</th>
            <th>换货数量</th>
            <th>单价</th>
            <th>差价</th>
            <th><div class="text-left">说明</div></th>
            <th><div class="text-left">备注</div></th>
        </tr>
        </thead>
        <tbody>
        {foreach $model->info as $info}
        <tr>
            <td width="100"><img src="{$info.image_url}" width="100px"></td>
            <td>{$info.name_ch}</td>
            <td class="copy-text">{$info.sku}</td>
            <td>{$info.unit}</td>
            <td>{$info.qty}</td>
            <td>{$info.price|abs}</td>
            <td>
                {if ($info.act_money) != 0}
                应<spna class="layui-badge {$info.act_money > 0 ? 'layui-bg-blue' : 'layui-bg-red'}">{$info.act_money > 0 ? '退' : '付'}</spna>{$info.act_money|abs}元
                {/if}
            </td>
            <td class="text-left">{$info.cost_desc}</td>
            <td class="text-left">{$info.remark}</td>
        </tr>
        {/foreach}
        </tbody>
    </table>
</div>
<div class="info-header">
    <div class="layui-row">
        <div class="layui-col-xs3">
            <label class="layui-form-label">供应商</label>
            <div class="layui-input-block">
                <input type="text" value="{$model.producer_name}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">换货仓库</label>
            <div class="layui-input-block">
                <input type="text" value="{$model.warehouse.name}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">物流商</label>
            <div class="layui-input-block">
                <input type="text" value="{$model.logistics_name}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">追踪号</label>
            <div class="layui-input-block">
                <input type="text" value="{$model.track_num}" readonly class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-xs3">
            <label class="layui-form-label">运费</label>
            <div class="layui-input-block">
                <input type="text" value="{$model.logistics_price|abs}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">换货原因</label>
            <div class="layui-input-block">
                <input type="text" value="{$model.desc}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-xs3">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" value="{$model.remark}" readonly class="layui-input">
            </div>
        </div>
    </div>
</div>